<?php
    session_start();
    include('class.mysql.php');
    $mydb = new mysql();
    $connection = $mydb->Connect();
    
    /*Melihat user yang aktif*/
    $username = $_SESSION["SES_USERNAME"];
    if($username!="admin")
        header("Location: lihat_data.php");
    /*Membaca Pesan*/
    $sql="select pesan1,pesan2,pesan3,pesan4,pesan5,pesan6,pesan7,pesan8,pesan9,pesan10,password from admin where username='admin'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
        $pesan1=$array[0];
        $pesan2=$array[1];	
        $pesan3=$array[2];	
        $pesan4=$array[3];	
        $pesan5=$array[4];	
        $pesan6=$array[5];	
        $pesan7=$array[6];	
        $pesan8=$array[7];	
        $pesan9=$array[8];	
        $pesan10=$array[9];
        $phppassword_kk=$array[10];
    }    
    $img_log="images/sign_out.png";
    $nama_kk="Administrator";
?>

<script type="text/javascript">
var oInterval2;

function showlistkota(str)
{
    var data;
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("listkota2").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp.onreadystatechange=function()
      {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
        document.getElementById("listkota2").innerHTML=xmlhttp.responseText;
        }
      }
    xmlhttp.open("GET","listkotae.php?q="+str,true);
    xmlhttp.send();

    update_retprop(str);
}
function showlistpropinsi(str)
{
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("listpropinsi").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp2=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp2.onreadystatechange=function()
      {
      if (xmlhttp2.readyState==4 && xmlhttp2.status==200)
        {
        document.getElementById("listpropinsi").innerHTML=xmlhttp2.responseText;
        }
      }
    xmlhttp2.open("GET","listprope.php?q="+str,true);
    xmlhttp2.send();
    //XX-XX-X-XXX
    //ChangeNoReg_updatelist("XX")
}
function showlistbidang(str)
{
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("listbidang").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp3=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp3=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp3.onreadystatechange=function()
      {
      if (xmlhttp3.readyState==4 && xmlhttp3.status==200)
        {
        document.getElementById("listbidang").innerHTML=xmlhttp3.responseText;
        }
      }
    xmlhttp3.open("GET","listbidange.php?q="+str,true);
    xmlhttp3.send();
    //ChangeNoReg_updatelist("XX")

}
function setCookie(c_name,value,exdays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + exdays);
	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
	document.cookie=c_name + "=" + c_value;
}
function getCookie(c_name)
{
	var i,x,y,ARRcookies=document.cookie.split(";");
	for (i=0;i<ARRcookies.length;i++)
	  {
	  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
	  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
	  x=x.replace(/^\s+|\s+$/g,"");
	  if (x==c_name)
	    {
	    return unescape(y);
	    }
	  }
}

function show_status_penyimpanan()
{
    var str,noreg_u;
    str=getCookie("s_simpan");
    window.location='#';
    if (str!="0" && str!="")
    {
        //alert(str);
        if(str=="GAGAL")
        {
            alert("Data gagal disimpan, mohon perbaiki data anda");
        }
        else if(str=="GAGAL2")
        {
            alert("Data gagal disimpan, nama kelompok yang anda pilih sudah digunakan oleh kelompok lain, mohon perbaiki data anda");
        }
        else
        {
            alert("Terima kasih, data anda telah berhasil disimpan, email telah dikirimkan ke alamat email anda");
            window.location='view.php?reg='+str;
	}
	window.clearInterval(oInterval2);
	setCookie("s_simpan","0",1);
    }    
}
function show_status_penyimpanan2()
{
    var str,noreg_u;
    str=getCookie("s_simpan");
    window.location='#';
    if (str!="0" && str!="")
    {
        //alert(str);
        if(str=="GAGAL")
        {
            alert("Data gagal disimpan, mohon perbaiki data anda");
        }
        else if(str=="GAGAL2")
        {
            alert("Data gagal disimpan, mohon perbaiki data anda");
        }
        else
        {
            alert("Terima kasih, perubahan password dan pesan dari administrator telah berhasi disimpan");
            window.location='view.php?reg='+str;
	}
	window.clearInterval(oInterval2);
	setCookie("s_simpan","0",1);
    }    
}
function saveDB(str)
{
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp5=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp5=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp5.onreadystatechange=function()
      {
      if (xmlhttp5.readyState==4 && xmlhttp5.status==200)
        {
        document.getElementById("testing").innerHTML=xmlhttp5.responseText;
        }
      }
    var no_reg=document.Inputdata.no_registrasi.value;
    var nama_kelompok=document.Inputdata.nama_kelompok.value;
    var spassword_kk=document.Inputdata.password_kk.value;
    var spassword_kk2=document.Inputdata.password_kk2.value;
    var salamat_kk=document.Inputdata.alamat_kk.value;
    var sdesa_kk=document.Inputdata.desa_kk.value;
    var skecamatan_kk=document.Inputdata.kecamatan_kk.value;
    var semail_kk=document.Inputdata.email_kk.value;
    var shp_kk=document.Inputdata.hp_kk.value;
    var snama1=document.Inputdata.nama1.value; var sanggota1=document.Inputdata.anggota1.value; snuptk1=document.Inputdata.nuptk1.value;
    var snama2=document.Inputdata.nama2.value; var sanggota2=document.Inputdata.anggota2.value; snuptk2=document.Inputdata.nuptk2.value;
    var snama3=document.Inputdata.nama3.value; var sanggota3=document.Inputdata.anggota3.value; snuptk3=document.Inputdata.nuptk3.value;
    var snama4=document.Inputdata.nama4.value; var sanggota4=document.Inputdata.anggota4.value; snuptk4=document.Inputdata.nuptk4.value;
    var snama5=document.Inputdata.nama5.value; var sanggota5=document.Inputdata.anggota5.value; snuptk5=document.Inputdata.nuptk5.value;
    var snama6=document.Inputdata.nama6.value; var sanggota6=document.Inputdata.anggota6.value; snuptk6=document.Inputdata.nuptk6.value;
    var snama7=document.Inputdata.nama7.value; var sanggota7=document.Inputdata.anggota7.value; snuptk7=document.Inputdata.nuptk7.value;
    var snama8=document.Inputdata.nama8.value; var sanggota8=document.Inputdata.anggota8.value; snuptk8=document.Inputdata.nuptk8.value;
    var snama9=document.Inputdata.nama9.value; var sanggota9=document.Inputdata.anggota9.value; snuptk9=document.Inputdata.nuptk9.value;
    var snama10=document.Inputdata.nama10.value; var sanggota10=document.Inputdata.anggota10.value; snuptk10=document.Inputdata.nuptk10.value;
    var snama11=document.Inputdata.nama11.value; var sanggota11=document.Inputdata.anggota11.value; snuptk11=document.Inputdata.nuptk11.value;
    var snama12=document.Inputdata.nama12.value; var sanggota12=document.Inputdata.anggota12.value; snuptk12=document.Inputdata.nuptk12.value;
    var snama13=document.Inputdata.nama13.value; var sanggota13=document.Inputdata.anggota13.value; snuptk13=document.Inputdata.nuptk13.value;
    var snama14=document.Inputdata.nama14.value; var sanggota14=document.Inputdata.anggota14.value; snuptk14=document.Inputdata.nuptk14.value;
    var snama15=document.Inputdata.nama15.value; var sanggota15=document.Inputdata.anggota15.value; snuptk15=document.Inputdata.nuptk15.value;
    var snama16=document.Inputdata.nama16.value; var sanggota16=document.Inputdata.anggota16.value; snuptk16=document.Inputdata.nuptk16.value;
    var snama17=document.Inputdata.nama17.value; var sanggota17=document.Inputdata.anggota17.value; snuptk17=document.Inputdata.nuptk17.value;
    var snama18=document.Inputdata.nama18.value; var sanggota18=document.Inputdata.anggota18.value; snuptk18=document.Inputdata.nuptk18.value;
    var snama19=document.Inputdata.nama19.value; var sanggota19=document.Inputdata.anggota19.value; snuptk19=document.Inputdata.nuptk19.value;
    var snama20=document.Inputdata.nama20.value; var sanggota20=document.Inputdata.anggota20.value; snuptk20=document.Inputdata.nuptk20.value;
    var snama21=document.Inputdata.nama21.value; var sanggota21=document.Inputdata.anggota21.value; snuptk21=document.Inputdata.nuptk21.value;
    var snama22=document.Inputdata.nama22.value; var sanggota22=document.Inputdata.anggota22.value; snuptk22=document.Inputdata.nuptk22.value;
    var snama23=document.Inputdata.nama23.value; var sanggota23=document.Inputdata.anggota23.value; snuptk23=document.Inputdata.nuptk23.value;
    var snama24=document.Inputdata.nama24.value; var sanggota24=document.Inputdata.anggota24.value; snuptk24=document.Inputdata.nuptk24.value;
    var snama25=document.Inputdata.nama25.value; var sanggota25=document.Inputdata.anggota25.value; snuptk25=document.Inputdata.nuptk25.value;
    var jml_anggota=document.Inputdata.jumlah_anggota.value;
    var no_registrasi=no_reg.substring(12,15);
    var kode_kota=no_reg.substring(3,5);
    var tipe_daerah=document.Inputdata.tipe_daerah_kk.value;
    var nama_bank_kk = document.Inputdata.bank_kk.value;
    var srek_kk = document.Inputdata.rek_kk.value;
    var snama_rek_kk = document.Inputdata.nama_rek_kk.value;
    var ssk_kk = document.Inputdata.sk_kk.value;
    var stgl_sk = document.Inputdata.tgl_sk.value;
    var js_no_reg0="<?php echo $php_no_reg0?>";
    sjumlah_anggota = document.Inputdata.jumlah_anggota.value;
    var ijml = parseInt(sjumlah_anggota);
    var passing="savedbe.php?status="+str+"&no_reg="+no_reg+"&nama_kelompok="+nama_kelompok+"&password_kk="+spassword_kk+"&spassword_kk2="+spassword_kk2;
    passing=passing+"&salamat_kk="+salamat_kk+"&sdesa_kk="+sdesa_kk+"&skecamatan_kk="+skecamatan_kk+"&semail_kk="+semail_kk+"&shp_kk="+shp_kk;
    passing=passing+"&snama1="+snama1+"&sanggota1="+sanggota1+"&snuptk1="+snuptk1;
    passing=passing+"&snama2="+snama2+"&sanggota2="+sanggota2+"&snuptk2="+snuptk2;
    passing=passing+"&snama3="+snama3+"&sanggota3="+sanggota3+"&snuptk3="+snuptk3;
    passing=passing+"&snama4="+snama4+"&sanggota4="+sanggota4+"&snuptk4="+snuptk4;
    passing=passing+"&snama5="+snama5+"&sanggota5="+sanggota5+"&snuptk5="+snuptk5;
    passing=passing+"&snama6="+snama6+"&sanggota6="+sanggota6+"&snuptk6="+snuptk6;
    passing=passing+"&snama7="+snama7+"&sanggota7="+sanggota7+"&snuptk7="+snuptk7;
    passing=passing+"&snama8="+snama8+"&sanggota8="+sanggota8+"&snuptk8="+snuptk8;
    passing=passing+"&snama9="+snama9+"&sanggota9="+sanggota9+"&snuptk9="+snuptk9;
    passing=passing+"&snama10="+snama10+"&sanggota10="+sanggota10+"&snuptk10="+snuptk10;
    passing=passing+"&snama11="+snama11+"&sanggota11="+sanggota11+"&snuptk11="+snuptk11;
    passing=passing+"&snama12="+snama12+"&sanggota12="+sanggota12+"&snuptk12="+snuptk12;
    passing=passing+"&snama13="+snama13+"&sanggota13="+sanggota13+"&snuptk13="+snuptk13;
    passing=passing+"&snama14="+snama14+"&sanggota14="+sanggota14+"&snuptk14="+snuptk14;
    passing=passing+"&snama15="+snama15+"&sanggota15="+sanggota15+"&snuptk15="+snuptk15;
    passing=passing+"&snama16="+snama16+"&sanggota16="+sanggota16+"&snuptk16="+snuptk16;
    passing=passing+"&snama17="+snama17+"&sanggota17="+sanggota17+"&snuptk17="+snuptk17;
    passing=passing+"&snama18="+snama18+"&sanggota18="+sanggota18+"&snuptk18="+snuptk18;
    passing=passing+"&snama19="+snama19+"&sanggota19="+sanggota19+"&snuptk19="+snuptk19;
    passing=passing+"&snama20="+snama20+"&sanggota20="+sanggota20+"&snuptk20="+snuptk20;
    passing=passing+"&snama21="+snama21+"&sanggota21="+sanggota21+"&snuptk21="+snuptk21;
    passing=passing+"&snama22="+snama22+"&sanggota22="+sanggota22+"&snuptk22="+snuptk22;
    passing=passing+"&snama23="+snama23+"&sanggota23="+sanggota23+"&snuptk23="+snuptk23;
    passing=passing+"&snama24="+snama24+"&sanggota24="+sanggota24+"&snuptk24="+snuptk24;
    passing=passing+"&snama25="+snama25+"&sanggota25="+sanggota25+"&snuptk25="+snuptk25+"&jml_anggota="+jml_anggota+"&no_registrasi="+no_registrasi+"&kode_kota="+kode_kota;
    passing=passing+"&tipe_daerah="+tipe_daerah+"&nama_bank="+nama_bank_kk+"&no_rek_bank="+srek_kk+"&snama_rek="+snama_rek_kk+"&kk_sk="+ssk_kk+"&sk_stgl="+stgl_sk+"&h_no_reg0="+js_no_reg0;
    var kelengkapan=1;
    if((no_reg.substring(0,2) == "XX") || (no_reg.substring(3,5) == "XX") || (no_reg.substring(6,7) == "X") || (no_reg.substring(8,11) == "XXX") || (no_reg.substring(12,15) == "XXX"))
    	kelengkapan=0;
    if((nama_kelompok=="") || (salamat_kk=="") || (tipe_daerah=="") || (sdesa_kk=="") || (skecamatan_kk=="") || (shp_kk==""))
        kelengkapan=0;
    /*if((nama_bank_kk=="")||(srek_kk=="")||(snama_rek_kk=="")||(ssk_kk=="")||(stgl_sk=="")||(semail_kk=="")) 
        kelengkapan = 0;*/ 
    if (ijml<15)
        kelengkapan = 0;      
    if (ijml>=15)
    {
    	if ((snama1=="")||(sanggota1=="")||(snuptk1=="")||(snama2=="")||(sanggota2=="")||(snuptk2=="")||(snama3=="")||(sanggota3=="")||(snuptk3=="")||(snama4=="")||(sanggota4=="")||(snuptk4=="")||(snama5=="")||(sanggota5=="")||(snuptk5==""))
    	    kelengkapan = 0;
    	if ((snama6=="")||(sanggota6=="")||(snuptk6=="")||(snama7=="")||(sanggota7=="")||(snuptk7=="")||(snama8=="")||(sanggota8=="")||(snuptk8=="")||(snama9=="")||(sanggota9=="")||(snuptk9=="")||(snama10=="")||(sanggota10=="")||(snuptk10==""))
    	    kelengkapan = 0;
    	if ((snama11=="")||(sanggota11=="")||(snuptk11=="")||(snama12=="")||(sanggota12=="")||(snuptk12=="")||(snama13=="")||(sanggota13=="")||(snuptk13=="")||(snama14=="")||(sanggota14=="")||(snuptk14=="")||(snama15=="")||(sanggota15=="")||(snuptk15==""))
    	    kelengkapan = 0;
    }
    if (ijml>=16)
    {
    	if ((snama16=="")||(sanggota16=="")||(snuptk16==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=17)
    {
    	if ((snama17=="")||(sanggota17=="")||(snuptk17==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=18)
    {
    	if ((snama18=="")||(sanggota18=="")||(snuptk18==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=19)
    {
    	if ((snama19=="")||(sanggota19=="")||(snuptk19==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=20)
    {
    	if ((snama20=="")||(sanggota20=="")||(snuptk20==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=21)
    {
    	if ((snama21=="")||(sanggota21=="")||(snuptk21==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=22)
    {
    	if ((snama22=="")||(sanggota22=="")||(snuptk22==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=23)
    {
    	if ((snama23=="")||(sanggota23=="")||(snuptk23==""))
    	    kelengkapan = 0;    	
    }
    if (ijml>=24)
    {
    	if ((snama24=="")||(sanggota24=="")||(snuptk24==""))
    	    kelengkapan = 0;    	
    }
    if (ijml==25)
    {
    	if ((snama25=="")||(sanggota25=="")||(snuptk25==""))
    	    kelengkapan = 0;    	
    }
    //alert(no_reg.substring(0,2));
    if((str == "save") && (kelengkapan == 1)&&(spassword_kk==spassword_kk2))
    {    
        //alert(passing);
    xmlhttp5.open("GET",passing,true);
    xmlhttp5.send();
	//if(str=="save")
	//    alert("Data telah berhasil disimpan, informasi pendaftaran telah dikirimkan ke alamat email "+semail_kk);
    	window.location='#';
    	oInterval2=window.setInterval("show_status_penyimpanan()", 1000);
    }
    else if (str=="save")
    {
        alert("Password yang anda masukkan tidak cocok, atau data belum lengkap (isian data bertanda * wajib diisi), silakan diperbaiki kembali");
    	window.location='#';
    }
    else if(str=="init")
    {
        xmlhttp5.open("GET","savedbe.php?status=init",true);
        xmlhttp5.send();
    }
    //parent.location="savedb.php?status="+str+"&q=abc"+"&nama="+nama_kelompok;
    //setTimeout("alert(document.cookie)",5000);
    //alert(document.cookie);
    //setCookie("status","processing",1);
    //datanya=getCookie("status");

    /*while(datanya=="processing")
    {
        datanya=getCookie("status");
    }*/
    //alert("abced");

}
function saveAdmPesan(str)
{
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp6=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp6=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp6.onreadystatechange=function()
      {
      if (xmlhttp6.readyState==4 && xmlhttp6.status==200)
        {
        document.getElementById("hide").innerHTML=xmlhttp6.responseText;
        }
      }
    var spassword_kk=document.Inputdata.password_kk.value;
    var spassword_kk2=document.Inputdata.password_kk2.value;
    var passing="savedbp.php?"+"password_kk="+spassword_kk+"&spassword_kk2="+spassword_kk2;
    passing=passing+"&pesan1="+document.Inputdata.pesan1.value;
    passing=passing+"&pesan2="+document.Inputdata.pesan2.value;
    passing=passing+"&pesan3="+document.Inputdata.pesan3.value;
    passing=passing+"&pesan4="+document.Inputdata.pesan4.value;
    passing=passing+"&pesan5="+document.Inputdata.pesan5.value;
    passing=passing+"&pesan6="+document.Inputdata.pesan6.value;
    passing=passing+"&pesan7="+document.Inputdata.pesan7.value;
    passing=passing+"&pesan8="+document.Inputdata.pesan8.value;
    passing=passing+"&pesan9="+document.Inputdata.pesan9.value;
    passing=passing+"&pesan10="+document.Inputdata.pesan10.value;
    if(spassword_kk==spassword_kk2)
    {    
        xmlhttp6.open("GET",passing,true);
        xmlhttp6.send();
    	window.location='#';
    	oInterval2=window.setInterval("show_status_penyimpanan2()", 1000);
    }
    else if (str=="save")
    {
        alert("Password yang anda masukkan tidak cocok, silakan diperbaiki kembali");
    	window.location='#';
    }
}

function update_retprop(str)
{
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data = data.substring(2,15);
    document.Inputdata.no_registrasi.value = str + data;
}
function update_noreg(str)
{
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,3);
    data1 = data1.substring(5,15);
    document.Inputdata.no_registrasi.value = data + str + data1;
}
function update_kk_reg(str)
{
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,6);
    data1 = data1.substring(7,15);
    document.Inputdata.no_registrasi.value = data + str + data1;
}
function update_bidang(str)
{
    //XX-XX-X-XXX-001	
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,8);
    data1 = data1.substring(11,15);
    document.Inputdata.no_registrasi.value = data + str + data1;
}
function update_no_urut()
{
    var data,data1;
    data=document.cookie;
    len=data.length;
    i=0;
    while(data1!="VaniaCantik" && i<len)
    {
	data1=data.substring(i,i+11);
	i=i+1;
        //alert(data1);
    }
    //alert(data1);
    str=data.substring(i+11,i+14);
    //alert(str);
    //alert(str);
    iurut=parseInt(str);
    iurut=iurut+1;
    if(i==len)
        iurut=1;
    if(iurut<10)
        str='00'+iurut;
    else if (iurut<100)
        str='0'+iurut;
    else
        str = iurut;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,12);
    document.Inputdata.no_registrasi.value = data + str;
}
function kosongi_noreg()
{
    //XX-XX-X-XXX-001	
    var data,data1;
    //alert("fdsafsa");
    data1=document.Inputdata.no_registrasi.value;
    //alert(data1);
    data = 'XX-XX-X-XXX-XXX';
    //data1 = data1.substring(12,15);
    document.Inputdata.no_registrasi.value = data;
    
}
</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<title>PROFIL KKG/MGMP, KKKS/MKKS, KKPS/MKPS</title>


<link rel="stylesheet" type="text/css" href="css/style-min.css" />
<link rel="stylesheet" type="text/css" href="css/table-min.css" />
<link rel="stylesheet" type="text/css" href="css/menu-min.css" />

<script type="text/javascript" src="script/libs_c.js"></script>
<!--<script type="text/javascript" src="script/default.js"></script>-->



<script type="text/javascript" language="javascript" src="script/script.js"></script>


<!--[if IE]>
<style type="text/css">
/* 50 = ti_m padding + margin */
#t_o { width: expression((document.getElementById('ti_m').offsetWidth + 50) > document.documentElement.offsetWidth ? document.documentElement.scrollWidth : ''); }
#ti_m1 { border-left: 0; }
#t_m .linfo, #t_m .rinfo { line-height: 1.6em; }
.toolbar fieldset { padding-bottom: 2px; }
input.button { padding: 0 8px; }
h3 { background-position: 0 1px; }
/* To prevent extra spacing under the tab */
div.tab { float: none; }
</style>
<![endif]-->

<!--[if lte IE 6]>
<script type="text/javascript" language="javascript" src="script/cssmenu.js"></script>
<style type="text/css">
img {
	behavior: url("imanges/pngbehavior.htc"); /* Must be absolute path */
}
</style>
<![endif]-->



<!-- module IE css -->

<style>
im { cursor:pointer;}
</style>

<link rel="shortcut icon" href="images/diknas-ico.png" />

</head>

<body>
<p id="saveadm">
	<div id="t_o">			
		<im><div id="t_h" OnClick="window.location=('http://psdmp.kemdiknas.go.id')">
			<div class="w0">
				<div class="w1">
					<div id="logo"><img alt="makara" src="images/diknas.png" style="width:42px;height:42px"/></div>
					<h1><em>KEMENTRIAN PENDIDIKAN DAN KEBUDAYAAN</em></h1>
					<!--<div class="lang icons">
						Language: &nbsp;
																					<span class="currentlang" title="Current language"><img src="images/id.png" /></span>
																					<a href="../System/Language?lang=en"><img src="images/en.png" /></a>
														 |
						zoom <select onchange="zoom(this)"><option value="100">100%</option><option value="110">110%</option><option value="120">120%</option><option value="140">140%</option><option value="150">150%</option></select>

					</div>-->
				</div>
			</div>
		</div></im>

		<div id="t_m">
			<div class="w0">
				<div class="w1">
					<ul id="nv">
					    <li class="static"><a href="#">&gt;&gt;</a></li>
					    <li><a href="lihat_data.php">Home</a></li>
					    <li class="class hc"><a href="#">Input Data</a>
					        <ul>
					            <li class="last"><a href="lihat_data.php">Isi / edit Data Kelompok Kerja</a></li>
					            <li class="last"><a href="view.php?reg=<?php echo $reg_no ?>">Lihat Data Kelompok Kerja</a></li>
					        </ul>
					    </li>
					    <li class="class hc"><a href="#">Laporan</a>
					        <ul>
					            <li><a href="ptampil_data.php">Rekapitulasi Data Kelompok Kerja</a></li>
					            <li class="last"><a href="showlistdata.php">Daftar Kelompok Kerja</a></li>
					        </ul>
					    </li>
					    <li class="class hc"></li>
					</ul>

					<div style="border-top:2px solid gold;border-bottom:1px solid #C90"><!-- --></div>
					<div id="m_b">
						<div id="m_b1">
							<div class="linfo" style="border-left:0">
								 <br/>
								<strong>
																<a href="/main/Authentication/Status" title="Detail"><img style="vertical-align:bottom" src="images/role2.png" class="png16" alt="person"/></a> Active User
																&ndash; <?php echo $nama_kk?>
																</strong>

							</div>
							<div class="linfo" style="border-right:0">
								 <a href="logout.php"><img src="<?php echo $img_log?>" /></a>
							</div>
							<div class="rinfo" style="font:1.2em Tahoma;color:#999;letter-spacing:-1px">
								<!--Logout Counter <span id="ss_min">30</span>:<span id="ss_sec">00</span>-->
							</div>

							
							<div class="clear"><!-- --></div>

							<div style="border-bottom:1px solid #DDD"><!-- --></div>
							<h2 id="ti_h">Pengaturan Password dan Pesan Administrator</h2>
							<div id="ti_m">
								<div id="ti_m1">
							<div class="clear"></div>

<div class="clear">&nbsp;</div>

<form action="kirimpos.php" method="post" name="Inputdata">

	<input type="hidden" name="KD_MHS" value="" />
	<table class="box" width="100%">
		<tr>
			<th colspan="4">Pengaturan Password Administrator</th>
		</tr>
		<tr>
			<td class="head" width="20%">Masukkan password *</td>
			<td width="30%"><input type="password" name="password_kk" maxlength="50" size="40" value="<?php echo $phppassword_kk ?>" /></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Konfirmasi Password *</td>
			<td width="30%"><input type="password" name="password_kk2" maxlength="50" size="40" value="<?php echo $phppassword_kk ?>" /></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<th colspan="4">Pengaturan Pesan Administrator</th>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 1<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan1" maxlength="400" size="140" value="<?php echo $pesan1 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 2<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan2" maxlength="400" size="140" value="<?php echo $pesan2 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 3<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan3" maxlength="400" size="140" value="<?php echo $pesan3 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 4<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan4" maxlength="400" size="140" value="<?php echo $pesan4 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 5<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan5" maxlength="400" size="140" value="<?php echo $pesan5 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 6<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan6" maxlength="400" size="140" value="<?php echo $pesan6 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 7<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan7" maxlength="400" size="140" value="<?php echo $pesan7 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 8<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan8" maxlength="400" size="140" value="<?php echo $pesan8 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 9<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan9" maxlength="400" size="140" value="<?php echo $pesan9 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Pesan 10<span style="color:red"></span></td>
			<td width="30%"><input type="text" name="pesan10" maxlength="400" size="140" value="<?php echo $pesan10 ?>"/></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
		    <td colspan="4" align="center">
    		        <input type="button" name="simpan" value="Simpan" onclick="saveAdmPesan('save');"/>
		    </td>
		</tr>

	</table>
</form>
																	</div>
							</div>
						</div>
					</div>

					<div style="clear:both;border-bottom:1px solid #DDD"><!-- --></div>
					<div class="foot">
						<div style="float:left">&copy; Copyright 2011 <a href="http://psdmp.kemdiknas.go.id" target="_blank">Kementrian Pendidikan dan Kebudayaan</a></div>

						<div style="float:right">Sekretariat PSDMP dan PMP</div>
						<div class="clear"></div>
					</div>

				</div>
			</div>
		</div>
		<div id="t_f"><div><div>&nbsp;</div></div></div>
	</div>

</body>
</html>